package com.api.user.service;
import com.api.user.model.Commodity;
import com.api.core.service.Service;
import com.api.core.response.Result;
import com.api.user.model.CommodityAdd;
import com.api.user.model.CouponUse;

import java.util.Map;

/**
 * Created by wanghuiwen on 2021/04/12.
 */
public interface CommodityService extends Service<Commodity> {
   Result list(Map<String,Object> params, String order, Integer page, Integer size);
   Result userList(Map<String,Object> params, String order, Integer page, Integer size);

   Result add(CommodityAdd commodityAdd);
   Result orderSend(Long orderId,Long userId);
   Result orderBuy(CouponUse couponUse,Long userId);
   Result stateUpdate(Long commodityId,Integer state);

    Result detail(Long commodityId);
}
